import request from '@/utils/request'


//获取化合物列表
export function compoundList(data) {
  return request({
    url: '/compound/list',
    method: 'post',
    data
  })
}

//获取化合物详细列表
export function compoundAllList(data) {
  return request({
    url: '/compound/all-list',
    method: 'post',
    data
  })
}

//添加化合物
export function compoundAdd(data) {
  return request({
    url: '/compound/add',
    method: 'post',
    data
  })
}

//修改化合物
export function compoundUpdate(data) {
  return request({
    url: '/compound/update',
    method: 'post',
    data
  })
}

//删除化合物
export function compoundDelete(id) {
  return request({
    url: '/compound/delete',
    method: 'post',
    params: {
      id
    }
  })
}

//批量删除化合物
export function compoundBatchDelete(data) {
  return request({
    url: '/compound/delete/batch',
    method: 'post',
    data
  })
}
